<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-info-edit" th:object="${seriesInfo}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">对象类型：</label>
                <div class="col-sm-8">
                    <input name="elementtype"  th:field="*{elementtype}"  class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">操作类型：</label>
                <div class="col-sm-8">
                    <input name="action" th:field="*{action}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">全局唯一标识：</label>
                <div class="col-sm-8">
                    <input name="code" th:field="*{code}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">连续剧名称：</label>
                <div class="col-sm-8">
                    <input name="name" th:field="*{name}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">原名：</label>
                <div class="col-sm-8">
                    <input name="originalname" th:field="*{originalname}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">首播日期：</label>
                <div class="col-sm-8">
                    <input name="orgairdate" th:field="*{orgairdate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">一句话点评影片：</label>
                <div class="col-sm-8">
                    <input name="shortdesc" th:field="*{shortdesc}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">是否计费：</label>

                <div class="col-sm-9">
                    <select class="form-control" th:field="*{bcharging}" name="bcharging">
                        <option value="0">免费</option>
                        <option value="1">付费</option>

                    </select>
                </div>

            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">计费模式：</label>
                <div class="col-sm-9">
                    <select class="form-control" th:field="*{chargingmode}" name="chargingmode">
                        <option value="0">单品</option>
                        <option value="1">产品包</option>
                        <option value="2">单点和产品包</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">计费定价：</label>
                <div class="col-sm-8">
                    <input name="price" th:field="*{price}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">总集数：</label>
                <div class="col-sm-8">
                    <input name="volumncount" th:field="*{volumncount}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">上线状态标志：</label>
                <div class="col-sm-9">
                    <select class="form-control" th:field="*{status}" name="status">
                        <option value="0">上线</option>
                        <option value="1">下线</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">描述信息：</label>
                <div class="col-sm-8">
                    <textarea name="description" class="form-control" required>[[*{description}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">导演列表：</label>
                <div class="col-sm-8">
                    <input name="actordisplay" th:field="*{actordisplay}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">主演列表：</label>
                <div class="col-sm-8">
                    <input name="writerdisplay" th:field="*{writerdisplay}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">剧头类型：</label>
                <div class="col-sm-9">
                    <select class="form-control"  th:field="*{seriestype}" name="seriestype">
                        <option value="1">连续剧</option>
                        <option value="2">单片</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">国家地区：</label>
                <div class="col-sm-8">
                    <input name="originalcountry" th:field="*{originalcountry}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">版权方标识：</label>
                <div class="col-sm-8">
                    <input name="copyright" th:field="*{copyright}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">内容提供商标识：</label>
                <div class="col-sm-8">
                    <input name="contentprovider" th:field="*{contentprovider}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">标签：</label>
                <div class="col-sm-8">
                    <input name="tags" th:field="*{tags}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">发行年代：</label>
                <div class="col-sm-8">
                    <input name="releaseyear" th:field="*{releaseyear}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">一级分类：</label>
                <div class="col-sm-8">
                    <input name="programtype"   th:field="*{programtype}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">二级分类：</label>
                <div class="col-sm-8">
                    <input name="programtype"   th:field="*{programtype2}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">英文名称：</label>
                <div class="col-sm-8">
                    <input name="enname" th:field="*{enname}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">副标题名称：</label>
                <div class="col-sm-8">
                    <input name="vname" th:field="*{vname}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">清晰度：</label>
                <div class="col-sm-9">
                    <select class="form-control"  th:field="*{definition}" name="definition">
                        <option value="1">高清</option>
                        <option value="2">流畅</option>
                        <option value="3">超清</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">主持人：</label>
                <div class="col-sm-8">
                    <input name="compere" th:field="*{compere}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">嘉宾：</label>
                <div class="col-sm-8">
                    <input name="guest" th:field="*{guest}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">手机端主海报：</label>
                <div class="col-sm-8">
                    <input name="phoneposterurl1" th:field="*{phoneposterurl1}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">手机端副海报：</label>
                <div class="col-sm-8">
                    <input name="phoneposterurl2" th:field="*{phoneposterurl2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">机顶盒主海报：</label>
                <div class="col-sm-8">
                    <input name="tvposterurl1" th:field="*{tvposterurl1}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">机顶盒副海报：</label>
                <div class="col-sm-8">
                    <input name="tvposterurl2" th:field="*{tvposterurl2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">媒资所属终端：</label>
                <div class="col-sm-8">
                    <input name="terminalid" th:field="*{terminalid}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">媒资类型：</label>
                <div class="col-sm-9">
                    <select class="form-control" th:field="*{metatype}" name="metatype">
                        <option value="0">多剧集</option>
                        <option value="1">单集</option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "tvManagement";
        $("#form-info-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-info-edit').serialize());
            }
        }
    </script>
</body>
</html>
